package com.authority.common;

public enum SysEnum {

	ADMIN(1, "ADMIN管理"), NOTADMIN(2, "非ADMIN管理");

	private SysEnum(int index, String text) {
		this.index = index;
		this.text = text;
	}

	private int index;

	private String text;

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public static String valueOf(int index) {
		for (StatusEnum t : StatusEnum.values()) {
			if (t.getIndex() == index) {
				return t.getText();
			}
		}
		return null;
	}
}
